package com.shmilyou.dissertationmanagement.repository;
/* Created with 岂止是一丝涟漪     530060499@qq.com    2019/1/17 */

import com.shmilyou.dissertationmanagement.domain.Patent;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface PatentRepository extends CrudRepository<Patent, Integer> {

    List<Patent> findAllByName(String name);

    List<Patent> findAllByDel(int del);

    Page<Patent> findAllByDel(Pageable page, int del);

    int countByDel(int del);
}
